#ifndef CLICKABLELABEL_H
#define CLICKABLELABEL_H
#include<QLabel>
#include<QMouseEvent>
class ClickableLabel:public QLabel
{
    Q_OBJECT
public:
    explicit ClickableLabel(QWidget* parent=nullptr);

signals:
    void clicked();
protected:
    void mousePressEvent(QMouseEvent* event) override;
    void enterEvent(QEnterEvent* event) override;
    void leaveEvent(QEvent* event) override;

private:
    void setupStyle();

};

#endif // CLICKABLELABEL_H
